#include "check.h"
#include "ui_check.h"

Check::Check(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Check)
{
    ui->setupUi(this);
    ui->warning->hide();
}

Check::~Check()
{
    delete ui;
}

void Check::on_return_2_clicked()
{
    this->hide();
    Admin *m=new Admin;
    m->show();
}


void Check::on_pushButton_clicked()
{
    if(ui->lineEdit->text()!="")
    {
        this->hide();
        SeaRe *m=new SeaRe;
        m->show();
    }
    else
        ui->warning->show();
}

